<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>

	<div id="content" class="single-column">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>


		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
			<h2><?php the_title(); ?></h2>

			<div class="entry">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				<br/><?php the_tags( '<p>关键词 : ', ', ', '</p>'); ?>
                <br/><script charset="utf8" type="text/javascript">cT="0";nc="#444444";nBgc="";nBorder="#F5E5A9";tc="#649B00";tBgc="#FFF4D0";tBorder="#F5E5A9";tDigg="%E6%8E%A8%E8%8D%90";tDugg="%E5%B7%B2%E8%8D%90";defaultItemUrl="WEB_URL";defaultFeedUrl ="http://qianli.me/feed/";</script><script type="text/javascript" charset="utf8" src="http://re.xianguo.com/api/diggthis.js"></script>

				<div class="postmetadata alt">
					<small>
                        本文由=<?php the_author(); ?>=发表于
						<?php /* This is commented, because it requires a little adjusting sometimes.
							You'll need to download this plugin, and follow the instructions:
							http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
						 <?php the_time('l, F j, Y') ?> - <?php the_time() ?>
                                                 , 归类于<?php the_category(', ') ?>，目前已有<?php if(function_exists('the_views')) the_views(); ?>。
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
							如果你想对本文发表看法，欢迎<a href="#respond">留言</a>, 或者使用<a href="<?php trackback_url(); ?>" rel="trackback">trackback</a>跟踪本文。

						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Only Pings are Open ?>
							不好意思，评论已经关闭, 不过你还可以使用<a href="<?php trackback_url(); ?> " rel="trackback">trackback</a>跟踪本文。

						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not ?>
							Ping服务已经被禁止，请直接留言吧。

						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Neither Comments, nor Pings are open ?>
							评论和Ping服务都已经关闭了。
						<?php } ?>
                        如果你喜欢本文，把它分享到<span class="twitter-add"><a href="http://twitter.com/home?status=我正在看《<?php the_title(); ?>》这篇文章。文章链接：<?php the_permalink() ?>" title="Click to send this page to Twitter!">Twitter</a></span><span class="delicious">或者收藏到<a href="http://del.icio.us/post?url=<?php the_permalink() ?>">Delicious</a></span>。
                        { 特别提示: 转载请注明原文作者及文章原始链接 &#8220;<a href="<?php the_permalink();?>"><?php the_title(); ?></a>&#8221; }。
                        <?php edit_post_link('Edit this entry','','.'); ?> 

					</small>
				</div>
		<div class="navigation">
			<div class="alignleft"><?php previous_post_link('上一篇: %link') ?></div>
			<div class="alignright"><?php next_post_link('下一篇: %link') ?></div>
		</div>

			</div>
		</div>

	<?php comments_template(); ?>

	<?php endwhile; else: ?>

		<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

	</div>
<?php get_sidebar(); ?>
<?php include (TEMPLATEPATH . '/includes/single_categories.php'); ?>
<?php get_footer(); ?>
